package cn.cyh.basic.uitls;

import lombok.Data;

@Data
public class AJaxResult {
    private String msg = "操作成功";
    private Boolean success = true;
    private Object resultObj;

    public static AJaxResult myself(){
        return new AJaxResult();
    }

    public AJaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AJaxResult setMsg(String msg) {
        this.msg = msg;
        this.success = success;
        return this;
    }

    public AJaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }
}